import request from '@/utils/request'

// 查询物料借用单明细列表
export function listBorrowDetails(query) {
  return request({
    url: '/wms/borrowDetails/list',
    method: 'get',
    params: query
  })
}

// 查询物料借用单明细详细
export function getBorrowDetails(borrowDetailUuid) {
  return request({
    url: '/wms/borrowDetails/' + borrowDetailUuid,
    method: 'get'
  })
}

// 新增物料借用单明细
export function addBorrowDetails(data) {
  return request({
    url: '/wms/borrowDetails',
    method: 'post',
    data: data
  })
}

// 修改物料借用单明细
export function updateBorrowDetails(data) {
  return request({
    url: '/wms/borrowDetails',
    method: 'put',
    data: data
  })
}

// 删除物料借用单明细
export function delBorrowDetails(borrowDetailUuid) {
  return request({
    url: '/wms/borrowDetails/' + borrowDetailUuid,
    method: 'delete'
  })
}
